<?xml version='1.0'?>

<gl_extension name="GL_AMD_debug_output" reg_no="395">
	<typedefs>
		<typedef type="void" synonym="(GLLOADER_APIENTRY *GLDEBUGPROCAMD)(GLuint id, GLenum category, GLenum severity, GLsizei length, const GLchar* message, GLvoid* userParam)"/>
	</typedefs>

	<tokens>
		<token name="GL_MAX_DEBUG_LOGGED_MESSAGES_AMD" value="0x9144"/>
		<token name="GL_DEBUG_LOGGED_MESSAGES_AMD" value="0x9145"/>
		<token name="GL_DEBUG_SEVERITY_HIGH_AMD" value="0x9146"/>
		<token name="GL_DEBUG_SEVERITY_MEDIUM_AMD" value="0x9147"/>
		<token name="GL_DEBUG_SEVERITY_LOW_AMD" value="0x9148"/>
		<token name="GL_DEBUG_CATEGORY_API_ERROR_AMD" value="0x9149"/>
		<token name="GL_DEBUG_CATEGORY_WINDOW_SYSTEM_AMD" value="0x914A"/>
		<token name="GL_DEBUG_CATEGORY_DEPRECATION_AMD" value="0x914B"/>
		<token name="GL_DEBUG_CATEGORY_UNDEFINED_BEHAVIOR_AMD" value="0x914C"/>
		<token name="GL_DEBUG_CATEGORY_PERFORMANCE_AMD" value="0x914D"/>
		<token name="GL_DEBUG_CATEGORY_SHADER_COMPILER_AMD" value="0x914E"/>
		<token name="GL_DEBUG_CATEGORY_APPLICATION_AMD" value="0x914F"/>
		<token name="GL_DEBUG_CATEGORY_OTHER_AMD" value="0x9150"/>
	</tokens>

	<functions>
		<function name="glDebugMessageEnableAMD" return="void">
			<params>
				<param type="GLenum" name="category"/>
				<param type="GLenum" name="severity"/>
				<param type="GLsizei" name="count"/>
				<param type="const GLuint*" name="ids"/>
				<param type="GLboolean" name="enabled"/>
			</params>
		</function>
		<function name="glDebugMessageInsertAMD" return="void">
			<params>
				<param type="GLenum" name="category"/>
				<param type="GLenum" name="severity"/>
				<param type="GLuint" name="id"/>
				<param type="GLsizei" name="length"/>
				<param type="const GLchar*" name="buf"/>
			</params>
		</function>
		<function name="glDebugMessageCallbackAMD" return="void">
			<params>
				<param type="GLDEBUGPROCAMD" name="callback"/>
				<param type="GLvoid*" name="userParam"/>
			</params>
		</function>
		<function name="glGetDebugMessageLogAMD" return="GLuint">
			<params>
				<param type="GLuint" name="count"/>
				<param type="GLsizei" name="bufsize"/>
				<param type="GLenum*" name="categories"/>
				<param type="GLuint*" name="severities"/>
				<param type="GLuint*" name="ids"/>
				<param type="GLsizei*" name="lengths"/>
				<param type="GLchar*" name="message"/>
			</params>
		</function>
	</functions>
</gl_extension>
